package org.example.homework;

public class UserBean {
    //    用户名
    private String userName;
    //    密码
    private String passWord;
    //    存款
    private Double Money;

    public UserBean() {
    }

    public UserBean(String userName, String passWord, Double money) {
        this.userName = userName;
        this.passWord = passWord;
        Money = money;
    }

    public String getUserName() {
        return userName;
    }

    public void setUserName(String userName) {
        this.userName = userName;
    }

    public String getPassWord() {
        return passWord;
    }

    public void setPassWord(String passWord) {
        this.passWord = passWord;
    }

    public Double getMoney() {
        return Money;
    }

    public void setMoney(Double money) {
        Money = money;
    }

    @Override
    public String toString() {
        return userName + "-" + passWord + "-" + Money;
    }
}
